import request from '@/utils/request'

export const messageList = (data: any) => {
  return request({
    url: '/message/list',
    type: 'get',
    data
  })
}

// 根据id 已读消息
export const messageRead = (data: any) => {
  return request({
    url: '/message/read',
    type: 'post',
    data
  })
}
// 获取未读消息数量
export const messageUnreadCount = (data: any) => {
  return request({
    url: '/message/unreadCount',
    type: 'get',
    data
  })
}
